<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbprogresEditDlg" widgetVar="PyfntbprogresEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbprogresTitle}">

            <h:form id="PyfntbprogresEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbprogresController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbprogresLabel_pyfntbprogresid}" for="pyfntbprogresid" />
                        <h:outputText id="pyfntbprogresid" value="#{pyfntbprogresController.selected.pyfntbprogresid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbprogresLabel_pyfntbprodresid}" for="pyfntbprodresid" />
                        <p:selectOneMenu id="pyfntbprodresid" value="#{pyfntbprogresController.selected.pyfntbprodresid}" required="true" requiredMessage="#{myBundle.EditPyfntbprogresRequiredMessage_pyfntbprodresid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbprodresController.items}"
                                           var="pyfntbprodresidItem"
                                           itemValue="#{pyfntbprodresidItem}"
                                           itemLabel="#{pyfntbprodresidItem.pyfntbprodresid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbprodresConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPyfntbprogresLabel_pyfntbpoaprogid}" for="pyfntbpoaprogid" />
                        <p:selectOneMenu id="pyfntbpoaprogid" value="#{pyfntbprogresController.selected.pyfntbpoaprogid}" required="true" requiredMessage="#{myBundle.EditPyfntbprogresRequiredMessage_pyfntbpoaprogid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpoaprogController.items}"
                                           var="pyfntbpoaprogidItem"
                                           itemValue="#{pyfntbpoaprogidItem}"
                                           itemLabel="#{pyfntbpoaprogidItem.pyfntbpoaprogid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpoaprogConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbprogresController.save}" value="#{myBundle.Save}" update="display,:PyfntbprogresListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbprogresEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbprogresEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
